<?php
class VB_Layoutblock extends VB_Db_Table_Row {
	protected $_prefix = 'layoutblock';

	public function getRenderer() {
		$r = new VB_Layoutblock_Renderers();
		$query = $r->select();
		$query->where('blockrenderer_type = ?' , 'normal');
		return $this->findVB_Layoutblock_Renderers($query)->current();
	}
	public function getAdminRenderer() {
		$r = new VB_Layoutblock_Renderers();
		$query = $r->select();
		$query->where('blockrenderer_type = ?' , 'admin');

		return $this->findVB_Layoutblock_Renderers($query)->current();
	}

}
?>